{include file="common/_header"}
{include file="common/_header1"}

<body class="layui-anim layui-anim-up">
<div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">售后管理</a>
            <a>
              <cite>服务售后列表</cite></a>
          </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>

<div class="x-body">




    <table id="tables" class="layui-table">
        <thead>
        <tr>
            <th>商铺名称</th>
            <th>用户信息</th>
            <th>订单信息</th>
            <th>商品图片</th>
            <th>预约上门时间</th>
            <th>时间</th>
            <th>售后状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="data.data" id="vo"}
        <tr class="table_tr">
            <td>{$vo.shop_name}</td>
            <td>
                联系人：{$vo.name}<br>
                联系手机号：{$vo.phone}
            </td>
            <td>
                订单号：{$vo.orderno}<br>
                原价：{$vo.price}<br>
                销售价格：{$vo.sale_price}<br>
                支付金额：{$vo.pay_amount}
            </td>
            <td><img src="/{$vo.top_pic}"></td>
            <td>{$vo.make_time}</td>
            <td>
                下单时间：{$vo.order_time|date="Y-m-d H:i:s"}<br>
                支付时间：{$vo.pay_time|date="Y-m-d H:i:s"}<br>
                申请售后时间：{$vo.after_time|date="Y-m-d H:i:s"}<br>
            </td>
            <td>{if $vo.state == 4}售后处理中{else}已退款{/if}</td>
            <td>
                <ul class="nav navbar-nav" style=" height: 30px; line-height: 10px;">
                    <li class="dropdown" style="height: 100%;">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" style=" height: 100%; line-height: 5px;">
                            操作
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            {if $vo.state == 4}
                            <li><a title="已退款" onclick="OperateStop('aftersalesservice?send_id={$vo.send_id}')" href="javascript:;">退款</a></li>
                            {/if}
                        </ul>
                    </li>
                </ul>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page_all">
        {$page|raw}
    </div>
</div>
<script>
    // 图片预览插件
    $('[data-magnify]').magnify({
        title: false, // 显示标题
        resizable: false,
        // 开启全屏
        initMaximized: true,
        headerToolbar: [
            'close'
        ],
    });
</script>
</body>

{include file="common/_bottom"}